]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: set password char on verif. failure
authorStéphane Démurget <stephane.demurget@free.fr>
Tue, 20 Nov 2012 23:08:23 +0000 (00:08 +0100)
committerStéphane Démurget <stephane.demurget@free.fr>
Tue, 20 Nov 2012 23:15:23 +0000 (00:15 +0100)
Commit c3cab28 removed bits setting the password char that was used to
allow typing the password after a failure but before the first question
for the new attempt came.

Without that code, in complex PAM setups you can end up with a visible
password.

https://bugzilla.gnome.org/show_bug.cgi?id=687113

js/ui/unlockDialog.js

index 5cdce929545964ecf32c09761f234edb496a455a..4db878c8ad9d50624687f2bfaa9b8beb6cea4a68 100644 (file)
@@ -341,6 +341,8 @@ const UnlockDialog = new Lang.Class({
         this._firstQuestion = true;
 
         this._promptEntry.text = '';
+        this._promptEntry.clutter_text.set_password_char('\u25cf');
+        this._promptEntry.menu.isPassword = true;
 
         this._updateSensitivity(false);
         this._setWorking(false);